package com.chapter11.classic_case;

public class exercise {
    public static void main(String[] args) {
        Week[] values = Week.values();
        for (Week week : values) {
            System.out.println(week);
        }
    }
}

enum Week{
    Monday("星期一"),Tuesday("星期二"),Wednesday("星期三"),
    Thursday("星期四"),Friday("星期五"),Saturday("星期六"),Sunday("星期日");
    private String name;

    Week(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name ;
    }
}
